/**************************************************************************

    SlkError.h

**************************************************************************/

#ifndef _SLKERROR_H
#define _SLKERROR_H

#include "SlkConstants.h"
#include "SlkToken.h"

class SlkError
{

public:

    SlkError ( SlkToken &tokens );

    slk_size_t
    mismatch ( slk_size_t  symbol,
               slk_size_t  token );
    
    slk_size_t
    no_entry ( slk_size_t  nonterminal,
               slk_size_t  token,
               int         level );
    
    void
    input_left ( void );

    void message ( char  *message );

private:

    SlkToken *tokens;

};

#endif

